// token结构体
package dto

import "loginTest/model"

type UserDto struct {
	Name     string `json:"name"`
	Phone    string `json:"phone"`
	Email    string `json:"email"`
	Identity string `json:"identity"`
}

func ToUserDto(user model.User) UserDto {
	return UserDto{
		Name:     user.Name,
		Phone:    user.Phone,
		Email:    user.Email,
		Identity: user.Identity,
	}
}
